package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.common.core.domain.R;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.dto.ReservationDto;
import com.zzyl.nursing.vo.CountByTimeVo;

import java.time.LocalDateTime;
import java.util.List;

public interface MemberReservationService extends IService<Reservation> {

    public Integer getCancelledReservationCount(Long userId);

    /**
     * 新增预约信息
     *
     * @param reservation 预约信息
     * @return 结果
     */
    public int insertReservation(Reservation reservation);

    public List<Reservation> list(Reservation reservation);

    void cancel(Long id);

    List<CountByTimeVo> countByTime(Long time);
}
